Skip to content

pico_binary_info: avoid uint in standalone header#3041

Closed
Old-Ding wants to merge 1 commit into
raspberrypi:developfrom
Old-Ding:fix/binary-info-tag-uint
Closed

pico_binary_info: avoid uint in standalone header#3041
Old-Ding wants to merge 1 commit into
raspberrypi:developfrom
Old-Ding:fix/binary-info-tag-uint

Conversation

@Old-Ding

Copy link
Copy Markdown

Summary

Fixes #3028.

pico/binary_info/structure.h documents that it may be included by non-SDK code and therefore should not depend on SDK includes. BINARY_INFO_MAKE_TAG() currently casts through uint, which is not a standard C type and is only available when another header has already provided that typedef.

Changes

  • Replace the uint casts in BINARY_INFO_MAKE_TAG() with standard unsigned int casts.
  • Keep the macro value and header dependencies unchanged.

Testing

  • git diff --check origin/master..HEAD
  • rg -n "BINARY_INFO_MAKE_TAG|\\buint\\b" src/common/pico_binary_info/include/pico/binary_info/structure.h
  • git diff --stat origin/master..HEAD

Build not run locally: this Windows environment does not currently have a C compiler, CMake, Ninja, or Make available in PATH.

@github-actions

Copy link
Copy Markdown

Please do not submit against master, use develop instead

@Old-Ding Old-Ding force-pushed the fix/binary-info-tag-uint branch from fd2ffef to d157f08 Compare June 29, 2026 01:17
@github-actions

Copy link
Copy Markdown

Please do not submit against master, use develop instead

@Old-Ding Old-Ding changed the base branch from master to develop June 29, 2026 01:17
@Old-Ding Old-Ding force-pushed the fix/binary-info-tag-uint branch from d157f08 to b479c2f Compare June 29, 2026 01:19
@Old-Ding Old-Ding marked this pull request as ready for review June 29, 2026 01:20
@lurch

lurch commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This seems to be a duplicate of #3029 ?

@Old-Ding

Copy link
Copy Markdown
Author

You're right, this duplicates #3029. I'll close this PR to avoid splitting the same change across two PRs. Thanks for pointing it out.

@Old-Ding Old-Ding closed this Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BINARY_INFO_MAKE_TAG uses non-portable uint typedef

2 participants